<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>UC-AI-003：人工复核原型</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/antd@5.12.8/dist/reset.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: #f5f5f5;
            color: #333;
        }
        
        .header {
            background: #fff;
            padding: 16px 24px;
            border-bottom: 1px solid #e8e8e8;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .breadcrumb {
            color: #666;
            font-size: 14px;
        }
        
        .breadcrumb a {
            color: #1890ff;
            text-decoration: none;
        }
        
        .main-content {
            padding: 24px;
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .content-area {
            display: grid;
            grid-template-columns: 1fr 400px;
            gap: 24px;
        }
        
        .main-panel {
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        
        .panel-header {
            background: #fafafa;
            padding: 16px 20px;
            border-bottom: 1px solid #e8e8e8;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .panel-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
        }
        
        .review-status {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .status-badge {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .status-badge.pending {
            background: #fff7e6;
            color: #faad14;
            border: 1px solid #ffd591;
        }
        
        .status-badge.reviewing {
            background: #e6f7ff;
            color: #1890ff;
            border: 1px solid #b3d8ff;
        }
        
        .status-badge.completed {
            background: #f6ffed;
            color: #52c41a;
            border: 1px solid #b7eb8f;
        }
        
        .video-section {
            position: relative;
            background: #000;
            height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .video-placeholder {
            color: #fff;
            text-align: center;
        }
        
        .video-placeholder-icon {
            font-size: 64px;
            margin-bottom: 16px;
            opacity: 0.6;
        }
        
        .video-controls {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,0.8));
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .play-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #1890ff;
            border: none;
            color: #fff;
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .progress-bar {
            flex: 1;
            height: 4px;
            background: rgba(255,255,255,0.3);
            border-radius: 2px;
            position: relative;
            cursor: pointer;
        }
        
        .progress-fill {
            height: 100%;
            background: #1890ff;
            border-radius: 2px;
            width: 45%;
        }
        
        .time-display {
            color: #fff;
            font-size: 12px;
            white-space: nowrap;
            font-family: monospace;
        }
        
        .review-panel {
            padding: 20px;
        }
        
        .ai-analysis {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 20px;
        }
        
        .analysis-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        
        .analysis-title {
            font-size: 14px;
            font-weight: 600;
            color: #333;
        }
        
        .analysis-score {
            font-size: 12px;
            color: #666;
        }
        
        .analysis-content {
            font-size: 13px;
            line-height: 1.6;
            color: #666;
        }
        
        .review-form {
            margin-bottom: 20px;
        }
        
        .form-section {
            margin-bottom: 20px;
        }
        
        .form-title {
            font-size: 14px;
            font-weight: 600;
            color: #333;
            margin-bottom: 12px;
        }
        
        .form-item {
            margin-bottom: 16px;
        }
        
        .form-label {
            display: block;
            font-size: 13px;
            color: #333;
            margin-bottom: 6px;
            font-weight: 500;
        }
        
        .form-control {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #d9d9d9;
            border-radius: 6px;
            font-size: 13px;
        }
        
        .form-control:focus {
            outline: none;
            border-color: #1890ff;
            box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
        }
        
        .form-control textarea {
            min-height: 80px;
            resize: vertical;
        }
        
        .radio-group {
            display: flex;
            gap: 16px;
        }
        
        .radio-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .radio-item input[type="radio"] {
            margin: 0;
        }
        
        .checkbox-group {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }
        
        .checkbox-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .checkbox-item input[type="checkbox"] {
            margin: 0;
        }
        
        .action-buttons {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }
        
        .btn {
            padding: 8px 16px;
            border: 1px solid;
            border-radius: 6px;
            font-size: 13px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s;
        }
        
        .btn-primary {
            background: #1890ff;
            border-color: #1890ff;
            color: #fff;
        }
        
        .btn-primary:hover {
            background: #40a9ff;
            border-color: #40a9ff;
        }
        
        .btn-success {
            background: #52c41a;
            border-color: #52c41a;
            color: #fff;
        }
        
        .btn-success:hover {
            background: #73d13d;
            border-color: #73d13d;
        }
        
        .btn-warning {
            background: #faad14;
            border-color: #faad14;
            color: #fff;
        }
        
        .btn-warning:hover {
            background: #ffc53d;
            border-color: #ffc53d;
        }
        
        .btn-default {
            background: #fff;
            border-color: #d9d9d9;
            color: #333;
        }
        
        .btn-default:hover {
            border-color: #1890ff;
            color: #1890ff;
        }
        
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        
        .sidebar-panel {
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        
        .sidebar-header {
            background: #fafafa;
            padding: 16px 20px;
            border-bottom: 1px solid #e8e8e8;
        }
        
        .sidebar-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
        }
        
        .sidebar-content {
            padding: 20px;
        }
        
        .review-list {
            list-style: none;
        }
        
        .review-item {
            padding: 12px;
            border: 1px solid #f0f0f0;
            border-radius: 6px;
            margin-bottom: 8px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .review-item:hover {
            border-color: #1890ff;
            background: #f0f8ff;
        }
        
        .review-item.selected {
            border-color: #1890ff;
            background: #e6f7ff;
        }
        
        .review-item.completed {
            border-color: #52c41a;
            background: #f6ffed;
        }
        
        .review-item-title {
            font-size: 13px;
            font-weight: 500;
            color: #333;
            margin-bottom: 4px;
        }
        
        .review-item-meta {
            font-size: 11px;
            color: #666;
            display: flex;
            justify-content: space-between;
        }
        
        .review-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }
        
        .stat-item {
            text-align: center;
            padding: 12px;
            background: #f8f9fa;
            border-radius: 6px;
        }
        
        .stat-value {
            font-size: 18px;
            font-weight: 600;
            color: #1890ff;
            margin-bottom: 4px;
        }
        
        .stat-label {
            font-size: 11px;
            color: #666;
        }
        
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        
        .modal-content {
            background: #fff;
            border-radius: 8px;
            padding: 24px;
            max-width: 600px;
            width: 90%;
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .modal-title {
            font-size: 18px;
            font-weight: 600;
            color: #333;
        }
        
        .modal-close {
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: #999;
        }
        
        .modal-footer {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            margin-top: 20px;
        }
        
        @media (max-width: 768px) {
            .content-area {
                grid-template-columns: 1fr;
            }
            
            .sidebar {
                order: -1;
            }
            
            .checkbox-group {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <!-- 页面头部 -->
    <div class="header">
        <div class="breadcrumb">
            <a href="#">首页</a> > <a href="#">AI复核</a> > 人工复核
        </div>
    </div>

    <!-- 主要内容区域 -->
    <div class="main-content">
        <div class="content-area">
            <!-- 主面板 -->
            <div class="main-panel">
                <div class="panel-header">
                    <div class="panel-title">人工复核</div>
                    <div class="review-status">
                        <div class="status-badge reviewing">复核中</div>
                        <span style="font-size: 12px; color: #666;">张教官 • 2024-05-15 14:30</span>
                    </div>
                </div>
                
                <!-- 视频区域 -->
                <div class="video-section">
                    <div class="video-placeholder">
                        <div class="video-placeholder-icon">📹</div>
                        <div>操作视频回放</div>
                    </div>
                    <div class="video-controls">
                        <button class="play-btn" onclick="togglePlay()">▶️</button>
                        <div class="progress-bar" onclick="seekVideo(event)">
                            <div class="progress-fill"></div>
                        </div>
                        <div class="time-display">0:00 / 2:30</div>
                    </div>
                </div>
                
                <!-- 复核面板 -->
                <div class="review-panel">
                    <!-- AI分析结果 -->
                    <div class="ai-analysis">
                        <div class="analysis-header">
                            <div class="analysis-title">AI分析结果</div>
                            <div class="analysis-score">综合评分: 87分</div>
                        </div>
                        <div class="analysis-content">
                            <p><strong>操作准确性:</strong> 85分 - 操作步骤基本正确，但在工具选择上存在轻微偏差</p>
                            <p><strong>动作规范性:</strong> 92分 - 动作标准，符合安全操作规范</p>
                            <p><strong>时间控制:</strong> 78分 - 操作时间略长，建议提高操作效率</p>
                            <p><strong>安全意识:</strong> 95分 - 安全意识很强，防护措施到位</p>
                        </div>
                    </div>
                    
                    <!-- 复核表单 -->
                    <div class="review-form">
                        <div class="form-section">
                            <div class="form-title">复核结果</div>
                            <div class="form-item">
                                <label class="form-label">复核结论</label>
                                <div class="radio-group">
                                    <div class="radio-item">
                                        <input type="radio" name="conclusion" value="pass" id="pass">
                                        <label for="pass">通过</label>
                                    </div>
                                    <div class="radio-item">
                                        <input type="radio" name="conclusion" value="fail" id="fail">
                                        <label for="fail">不通过</label>
                                    </div>
                                    <div class="radio-item">
                                        <input type="radio" name="conclusion" value="retry" id="retry">
                                        <label for="retry">重新操作</label>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="form-item">
                                <label class="form-label">复核评分</label>
                                <input type="number" class="form-control" placeholder="请输入评分 (0-100)" min="0" max="100" value="87">
                            </div>
                            
                            <div class="form-item">
                                <label class="form-label">问题类型</label>
                                <div class="checkbox-group">
                                    <div class="checkbox-item">
                                        <input type="checkbox" id="safety">
                                        <label for="safety">安全问题</label>
                                    </div>
                                    <div class="checkbox-item">
                                        <input type="checkbox" id="procedure">
                                        <label for="procedure">流程问题</label>
                                    </div>
                                    <div class="checkbox-item">
                                        <input type="checkbox" id="efficiency">
                                        <label for="efficiency">效率问题</label>
                                    </div>
                                    <div class="checkbox-item">
                                        <input type="checkbox" id="quality">
                                        <label for="quality">质量问题</label>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="form-item">
                                <label class="form-label">复核意见</label>
                                <textarea class="form-control" placeholder="请输入复核意见...">操作整体符合规范，但在工具选择上需要改进。建议严格按照标准流程执行，提高操作效率。安全意识很好，继续保持。</textarea>
                            </div>
                            
                            <div class="form-item">
                                <label class="form-label">改进建议</label>
                                <textarea class="form-control" placeholder="请输入改进建议...">1. 严格按照标准操作流程执行\n2. 提高操作熟练度，缩短操作时间\n3. 注意工具的正确使用方法\n4. 继续保持良好的安全意识</textarea>
                            </div>
                        </div>
                        
                        <div class="action-buttons">
                            <button class="btn btn-default" onclick="saveDraft()">💾 保存草稿</button>
                            <button class="btn btn-warning" onclick="requestReview()">🔄 申请复核</button>
                            <button class="btn btn-success" onclick="submitReview()">✅ 提交复核</button>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 侧边栏 -->
            <div class="sidebar">
                <!-- 复核列表 -->
                <div class="sidebar-panel">
                    <div class="sidebar-header">
                        <div class="sidebar-title">复核任务</div>
                    </div>
                    <div class="sidebar-content">
                        <ul class="review-list">
                            <li class="review-item selected" onclick="selectReview(this)">
                                <div class="review-item-title">张三 - 基础操作培训</div>
                                <div class="review-item-meta">
                                    <span>2024-05-15 14:30</span>
                                    <span>复核中</span>
                                </div>
                            </li>
                            <li class="review-item completed" onclick="selectReview(this)">
                                <div class="review-item-title">李四 - 安全操作培训</div>
                                <div class="review-item-meta">
                                    <span>2024-05-15 14:15</span>
                                    <span>已完成</span>
                                </div>
                            </li>
                            <li class="review-item" onclick="selectReview(this)">
                                <div class="review-item-title">王五 - 设备维护培训</div>
                                <div class="review-item-meta">
                                    <span>2024-05-15 14:00</span>
                                    <span>待复核</span>
                                </div>
                            </li>
                            <li class="review-item" onclick="selectReview(this)">
                                <div class="review-item-title">赵六 - 质量控制培训</div>
                                <div class="review-item-meta">
                                    <span>2024-05-15 13:45</span>
                                    <span>待复核</span>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>

                <!-- 复核统计 -->
                <div class="sidebar-panel">
                    <div class="sidebar-header">
                        <div class="sidebar-title">复核统计</div>
                    </div>
                    <div class="sidebar-content">
                        <div class="review-stats">
                            <div class="stat-item">
                                <div class="stat-value">12</div>
                                <div class="stat-label">今日复核</div>
                            </div>
                            <div class="stat-item">
                                <div class="stat-value">8</div>
                                <div class="stat-label">已完成</div>
                            </div>
                            <div class="stat-item">
                                <div class="stat-value">3</div>
                                <div class="stat-label">待复核</div>
                            </div>
                            <div class="stat-item">
                                <div class="stat-value">85%</div>
                                <div class="stat-label">通过率</div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 复核标准 -->
                <div class="sidebar-panel">
                    <div class="sidebar-header">
                        <div class="sidebar-title">复核标准</div>
                    </div>
                    <div class="sidebar-content">
                        <div style="font-size: 12px; line-height: 1.6; color: #666;">
                            <p style="margin-bottom: 8px;"><strong>操作准确性 (30%)</strong></p>
                            <p style="margin-bottom: 12px;">检查操作步骤是否正确，是否符合标准流程</p>
                            
                            <p style="margin-bottom: 8px;"><strong>动作规范性 (25%)</strong></p>
                            <p style="margin-bottom: 12px;">评估动作是否标准，是否符合安全规范</p>
                            
                            <p style="margin-bottom: 8px;"><strong>时间控制 (20%)</strong></p>
                            <p style="margin-bottom: 12px;">检查操作时间是否合理，效率如何</p>
                            
                            <p style="margin-bottom: 8px;"><strong>安全意识 (25%)</strong></p>
                            <p>评估安全防护措施是否到位</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 提交确认弹窗 -->
    <div class="modal" id="submitModal">
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title">提交复核结果</h3>
                <button class="modal-close" onclick="closeModal()">&times;</button>
            </div>
            <div class="modal-body">
                <p style="margin-bottom: 16px;">确定要提交复核结果吗？提交后将无法修改。</p>
                <div style="background: #f8f9fa; padding: 12px; border-radius: 6px; font-size: 13px;">
                    <p><strong>复核结论:</strong> 通过</p>
                    <p><strong>复核评分:</strong> 87分</p>
                    <p><strong>复核意见:</strong> 操作整体符合规范，但在工具选择上需要改进...</p>
                </div>
            </div>
            <div class="modal-footer">
                <button class="btn btn-default" onclick="closeModal()">取消</button>
                <button class="btn btn-success" onclick="confirmSubmit()">确认提交</button>
            </div>
        </div>
    </div>

    <script>
        // 全局变量
        let isPlaying = false;

        // 视频控制
        function togglePlay() {
            isPlaying = !isPlaying;
            const playBtn = document.querySelector('.play-btn');
            playBtn.textContent = isPlaying ? '⏸️' : '▶️';
            console.log('播放/暂停视频');
        }

        function seekVideo(event) {
            const rect = event.currentTarget.getBoundingClientRect();
            const x = event.clientX - rect.left;
            const percentage = x / rect.width;
            document.querySelector('.progress-fill').style.width = (percentage * 100) + '%';
            console.log('跳转视频:', percentage);
        }

        // 复核操作
        function saveDraft() {
            console.log('保存草稿');
        }

        function requestReview() {
            console.log('申请复核');
        }

        function submitReview() {
            document.getElementById('submitModal').style.display = 'flex';
        }

        function confirmSubmit() {
            closeModal();
            console.log('确认提交复核结果');
        }

        // 复核选择
        function selectReview(element) {
            document.querySelectorAll('.review-item').forEach(item => {
                item.classList.remove('selected');
            });
            element.classList.add('selected');
            
            const title = element.querySelector('.review-item-title').textContent;
            console.log('选择复核任务:', title);
        }

        // 弹窗控制
        function closeModal() {
            document.getElementById('submitModal').style.display = 'none';
        }

        // 点击弹窗外部关闭
        document.getElementById('submitModal').addEventListener('click', (e) => {
            if (e.target.id === 'submitModal') {
                closeModal();
            }
        });

        // 表单验证
        function validateForm() {
            const conclusion = document.querySelector('input[name="conclusion"]:checked');
            const score = document.querySelector('input[type="number"]').value;
            const opinion = document.querySelector('textarea').value;
            
            if (!conclusion) {
                alert('请选择复核结论');
                return false;
            }
            
            if (!score || score < 0 || score > 100) {
                alert('请输入有效的评分 (0-100)');
                return false;
            }
            
            if (!opinion.trim()) {
                alert('请输入复核意见');
                return false;
            }
            
            return true;
        }

        // 提交复核
        function submitReview() {
            if (validateForm()) {
                document.getElementById('submitModal').style.display = 'flex';
            }
        }

        // 初始化
        document.addEventListener('DOMContentLoaded', () => {
            console.log('人工复核页面初始化');
        });
    </script>
</body>
</html>

